package ZY407;
public class ZY01 {
        private String name;
        private int couid;
    private int Sid;
    void setName(String name1){
            name=name1;
        }
        String getName(){
            return name;
        }
        void setStuid(int id){
            if(id<=0){
                System.out.println("...");
            }else if(id>=30){
                System.out.println("...");
            }else {
               Sid=id;
            }
        }
        int getcouid(){
            return couid;
        }
        void older(int Sid1,int Sid2){
            if(Sid1<Sid2){
                System.out.println(name+"在mysql前面");
            }else {
                System.out.println(name+"在mysql后面");
            }
        }
    }

